package com.cnhis.cloudhealth.clinical.medical.base.dao;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public class McallDao extends BaseDao {
    /**
     * @Description:(医技呼叫队列保存)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:30
     */
    public void save(Map map) throws Exception {
        insert("Mcall.save",map);
    }

    /**
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @Description:(输液呼叫队列保存)
     * @author chengshaowei
     * @date 2016/9/19 10:30
     */
    public void saveInfusionCall(Map map) throws Exception {
        insert("Mcall.saveInfusionCall", map);
    }


    /**
     * @Description:(医技呼叫队列修改)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:30
     */
    public void update(Map map) throws Exception {
        update("Mcall.update",map);
    }

    /**
     * @Description:(查看此病人是否被呼叫)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:37
     */
    public Map<String, Object> findCallInfo(Map map) throws Exception {
        return (Map<String, Object>) this.queryToObject("Mcall.findCallInfo", map);
    }

    public Map<String, Object> findCallInfo1(Map map) throws Exception {
        return (Map<String, Object>) this.queryToObject("Mcall.findCallInfo1", map);
    }

    public Map<String, Object> findCallInfo2(Map map) throws Exception {
        return (Map<String, Object>) this.queryToObject("Mcall.findCallInfo2", map);
    }

    public Map<String, Object> findMaxSerialnum(Map map) throws Exception {
        return (Map<String, Object>) this.queryToObject("Mcall.findMaxSerialnum", map);
    }
    /**
     * @Description:(修改队列主键)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:37
     */
    public void updateVcz1Id(Map map) throws Exception {
        update("Mcall.updateVcz1Id",map);
    }
    /**
     * @Description:(查询队列主键)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:37
     */
    public Map<String, Object> findVcz1Id(Map map) throws Exception {
        return (Map<String, Object>) this.queryToObject("Mcall.findVcz1Id", map);
    }

    /**
     * @Description:(查询队列序号)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:37
     */
    public Map<String, Object> findVda1(Map map) throws Exception {
        return (Map<String, Object>) this.queryToObject("Mcall.findVda1", map);
    }

    /**
     * @Description:(查询队列序号)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:37
     */
    public void updateVda1(Map map) throws Exception {
        update("Mcall.updateVda1",map);
    }

    /**
     * @Description:(保存队列序号)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:37
     */
    public void insertVda1(Map map) throws Exception {
        update("Mcall.insertVda1",map);
    }
}
